﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business;
using System.Web.Security;

namespace Interview_Prov
{
    public partial class Default : System.Web.UI.Page
    {
        //public BusinessLogic bll = new BusinessLogic();

        protected void Page_Load(object sender, EventArgs e)
        {
            adm_link.Visible = false;
            mod_link.Visible = false;
            usr_link.Visible = false;
            
            if (Global.IsAuthenticated)
            {
                if (Global.UserRoles.Contains("admin"))
                {
                    adm_link.Visible = true;
                }
                if (Global.UserRoles.Contains("moderator"))
                {
                    mod_link.Visible = true;
                }
                if (Global.UserRoles.Contains("user"))
                {
                    usr_link.Visible = true; 
                }
            }
            else
            {
            }
        }


    }
}